import 'package:rfid/generated/json/base/json_convert_content.dart';
import 'package:rfid/entity/book_entity.dart';
import 'package:hive/hive.dart';


BookEntity $BookEntityFromJson(Map<String, dynamic> json) {
	final BookEntity bookEntity = BookEntity();
	final String? no = jsonConvert.convert<String>(json['no']);
	if (no != null) {
		bookEntity.no = no;
	}
	final String? place = jsonConvert.convert<String>(json['place']);
	if (place != null) {
		bookEntity.place = place;
	}
	final String? stateValue = jsonConvert.convert<String>(json['state_value']);
	if (stateValue != null) {
		bookEntity.stateValue = stateValue;
	}
	final String? isbn = jsonConvert.convert<String>(json['isbn']);
	if (isbn != null) {
		bookEntity.isbn = isbn;
	}
	final String? mainTitle = jsonConvert.convert<String>(json['main_title']);
	if (mainTitle != null) {
		bookEntity.mainTitle = mainTitle;
	}
	final String? author = jsonConvert.convert<String>(json['author']);
	if (author != null) {
		bookEntity.author = author;
	}
	final String? searchNo = jsonConvert.convert<String>(json['search_no']);
	if (searchNo != null) {
		bookEntity.searchNo = searchNo;
	}
	final String? subject = jsonConvert.convert<String>(json['subject']);
	if (subject != null) {
		bookEntity.subject = subject;
	}
	final String? publisher = jsonConvert.convert<String>(json['publisher']);
	if (publisher != null) {
		bookEntity.publisher = publisher;
	}
	final String? publishDate = jsonConvert.convert<String>(json['publish_date']);
	if (publishDate != null) {
		bookEntity.publishDate = publishDate;
	}
	final double? price = jsonConvert.convert<double>(json['price']);
	if (price != null) {
		bookEntity.price = price;
	}
	final String? pages = jsonConvert.convert<String>(json['pages']);
	if (pages != null) {
		bookEntity.pages = pages;
	}
	final String? doorNo = jsonConvert.convert<String>(json['doorNo']);
	if (doorNo != null) {
		bookEntity.doorNo = doorNo;
	}
	final int? statue = jsonConvert.convert<int>(json['statue']);
	if (statue != null) {
		bookEntity.statue = statue;
	}
	final String? cover = jsonConvert.convert<String>(json['cover']);
	if (cover != null) {
		bookEntity.cover = cover;
	}
	final String? summary = jsonConvert.convert<String>(json['summary']);
	if (summary != null) {
		bookEntity.summary = summary;
	}
	final int? stackStatus = jsonConvert.convert<int>(json['stackStatus']);
	if (stackStatus != null) {
		bookEntity.stackStatus = stackStatus;
	}
	final String? remark = jsonConvert.convert<String>(json['remark']);
	if (remark != null) {
		bookEntity.remark = remark;
	}
	return bookEntity;
}

Map<String, dynamic> $BookEntityToJson(BookEntity entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['no'] = entity.no;
	data['place'] = entity.place;
	data['state_value'] = entity.stateValue;
	data['isbn'] = entity.isbn;
	data['main_title'] = entity.mainTitle;
	data['author'] = entity.author;
	data['search_no'] = entity.searchNo;
	data['subject'] = entity.subject;
	data['publisher'] = entity.publisher;
	data['publish_date'] = entity.publishDate;
	data['price'] = entity.price;
	data['pages'] = entity.pages;
	data['doorNo'] = entity.doorNo;
	data['statue'] = entity.statue;
	data['cover'] = entity.cover;
	data['summary'] = entity.summary;
	data['stackStatus'] = entity.stackStatus;
	data['remark'] = entity.remark;
	return data;
}